export const tableOption = {
  dialogDrag: true,
  border: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  menuType: 'text',
  searchShow: false,
  excelBtn: false,
  printBtn: false,
  viewBtn: true,
  searchMenuSpan: 6,
  labelWidth: 150,
  column: [
    {
      label: '服务区域',
      prop: 'serviceCity',
      type: 'select',
      dicUrl: '/upms/dict/type/city_type',
      rules: [{
        required: true,
        message: '服务地区不能为空',
        trigger: 'blur'
      }]
    },
    {
      label: '平台抽成(%)',
      prop: 'commission',
      type: 'number',
      minRows: 0,
      maxRows: 100,
      tip: '平台抽成比例（0~100）%',
      rules: [{
        required: true,
        message: '平台抽成比例不能为空',
        trigger: 'blur'
      }]
    },
    {
      label: '夜间开始时间',
      prop: 'nightStartTime',
      type: 'time',
      valueFormat: 'HH:mm:ss',
      rules: [{
        required: true,
        message: '请选择夜间开始时间',
        trigger: 'blur'
      }]
    },
    {
      label: '夜间结束时间',
      prop: 'nightEndTime',
      type: 'time',
      valueFormat: 'HH:mm:ss',
      rules: [{
        required: true,
        message: '请选择夜间结束时间',
        trigger: 'blur'
      }]
    },
    {
      label: '夜间服务费(元)',
      prop: 'freightPrice',
      type: 'number',
      minRows: 0,
      rules: [{
        required: true,
        message: '夜间服务费不能为空',
        trigger: 'blur'
      }]
    },
    {
      label: '是否启用',
      prop: 'enable',
      type: 'radio',
      slot: true,
      rules: [{
        required: true,
        message: '请选择是否启用',
        trigger: 'blur'
      }],
      dicData: [{
        label: '关闭',
        value: '0'
      }, {
        label: '启用',
        value: '1'
      }]
    },
  ]
}
